#ifndef unigame_BmpReader_h
#define unigame_BmpReader_h

#include "config/Def.h"
#include "ImageReader.h"

namespace unigame
{
	class BmpReader: public ImageReader
	{
	public:
		BmpReader(char* fileData, uint32 len):ImageReader(fileData, len){}
		~BmpReader(){}

		bool read();

	private:
		void readNoCompress(uint32 offset, uint32 len, int32 bits);
		void readRle4(uint32 offset, uint32 len);
		void readRle8(uint32 offset, uint32 len);
		void readBitFiled(uint32 offset, uint32 len);

	private:
	};
}

#endif